package com.xjtu.chapter07.ex7_3;

import javax.swing.*;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/19 10:29
 */
public class GameFrame extends JFrame {
    GamePanel gamePanel;
    public GameFrame(){
        setSize(520,320);
        setTitle("XJTU GAME");
        gamePanel = new GamePanel();
        add(gamePanel);//添加面板到顶级容器中
        setVisible(true);
        setResizable(false);
    }
}
